package cn.edu.sdyu.ie.crs.service;

import cn.edu.sdyu.ie.crs.domain.ClassroomEnvironment;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ClassroomEnvironmentService {

    /**
     * 查询所有教室环境信息
     * @return
     */
    List<ClassroomEnvironment> findAll();

    /**
     *
     * @param page 页码
     * @param pageSize 分页大小
     * @return
     */
    Page<ClassroomEnvironment> findByPage(Integer page, Integer pageSize);

    /**
     * 根据教室环境ID查询教室环境信息
     * @param id 教室Id
     * @return
     */
    ClassroomEnvironment findClassroomEnvironmentById(Integer id);

    /**
     * 保存教室环境信息
     * @param classroomEnvironment 教室环境对象
     */
    void saveClassroomEnvironment(ClassroomEnvironment classroomEnvironment);

    /**
     * 根据教室环境ID删除教室环境信息
     * @param id
     */
    void deleteClassroomEnvironmentById(Integer id);

    /**
     * 根据教室ID查询教室环境信息
     * @param classroomId
     * @return
     */
    ClassroomEnvironment findClassroomEnvironmentByClassroomId(Integer classroomId);

}
